const state = {
  currentCity: null
}

const getters = {
  currentCity: state => state.currentCity
}

const mutations = {
	setCity(state, data) {
		state.currentCity = data
	}
}

const actions = {
  setCurrentCity({ commit }, data) {
  	commit('setCity', data)
  },
}

export default {
  state,
  getters,
  mutations,
  actions
}